package ProxyPattern.cglib;

/**
 * @author： pang-yun
 * @date： 2021-10-25 16:49
 * 功能目的 ：用于
 */

public class Client {
    public static void main(String[] args) {
        TeacherDao teacherDao = new TeacherDao();
        TeacherDao proxyInstance = (TeacherDao) new ProxyFactory(teacherDao).getProxyInstance();
        int teach = proxyInstance.teach();
        System.out.println(teach);
    }
}
